package com.nain.dao;

import com.nain.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 1
 * @Date: 2021/4/28 8:41
 * @Version 1.0
 */
public interface BooksMapper {
//    CRUD
int addBook(Books book);

int deleteBookById(@Param("bookId") int id);

int updateBook(Books book);

Books queryBookById(@Param("bookId") int id);

List<Books> queryAllBook();

}
